<?php

namespace app\api\controller;

use think\Controller;
use think\Request;
use think\captcha\Captcha;

class Checkcode extends Controller
{
    /**
     *
     * 获取验证码
     */
    public function getVerify()
    {
        $captcha = [
            'fontSize' => 25,
            'useCurve' => false,
            'useNoise' => false,
            'length'=>3,
            'reset'=>false
        ];
        $captcha = new Captcha($captcha);
        return $captcha->entry();
    }
}
